package com.hotlove.tools.exception;

/**
 * @Auther: hotlove_linx
 * @Date: 2022/4/16 17:15
 * @Description:
 */
public class CommonException extends Exception{

    protected Integer errorCode = 1;

    public CommonException(String message) {
        super(message);
    }

    public CommonException(Integer code, String message) {
        this(message);
        this.errorCode = code;
    }

    public CommonException(String message, Throwable cause) {
        super(message, cause);
    }

    public CommonException(Integer code, String message, Throwable cause) {
        this(message, cause);
        this.errorCode = code;
    }

    public Integer getErrorCode() {
        return this.errorCode;
    }


}
